package com.homegoods.designer.model;

import com.homegoods.designer.item.EditDesignCase2Item;
import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseItem;
import com.kedll.library.mvp.BaseModel;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * 编辑作品2
 */
public class EditDesignCase2Model extends BaseModel {


    private String title;
    private List<String> pics = Collections.emptyList();
    private String descrip;

    public String getTitle() {
        return title == null ? "" : title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<String> getPics() {
        if (pics == null) {
            return new ArrayList<>();
        }
        return pics;
    }

    public void setPics(List<String> pics) {
        this.pics = pics;
    }

    public String getDescrip() {
        return descrip == null ? "" : descrip;
    }

    public void setDescrip(String descrip) {
        this.descrip = descrip;
    }

    @Override
    public BaseItem createItem(MultiTypeAdapter adapter) {
        return new EditDesignCase2Item(this, adapter);
    }

}
